package org.gourpg.model.permission;

/**
 * 权限菜单关系实体
 */
public class PermissionMenuRel {
    /**
     * 权限ID，权限的主键
     */
    private Integer powerId;

    /**
     * 菜单ID，菜单的主键
     */
    private Integer menuId;

    public PermissionMenuRel() {
    }

    public Integer getPowerId() {
        return this.powerId;
    }

    public Integer getMenuId() {
        return this.menuId;
    }

    public void setPowerId(Integer powerId) {
        this.powerId = powerId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof PermissionMenuRel)) return false;
        final PermissionMenuRel other = (PermissionMenuRel) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$powerId = this.getPowerId();
        final Object other$powerId = other.getPowerId();
        if (this$powerId == null ? other$powerId != null : !this$powerId.equals(other$powerId)) return false;
        final Object this$menuId = this.getMenuId();
        final Object other$menuId = other.getMenuId();
        if (this$menuId == null ? other$menuId != null : !this$menuId.equals(other$menuId)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof PermissionMenuRel;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $powerId = this.getPowerId();
        result = result * PRIME + ($powerId == null ? 43 : $powerId.hashCode());
        final Object $menuId = this.getMenuId();
        result = result * PRIME + ($menuId == null ? 43 : $menuId.hashCode());
        return result;
    }

    public String toString() {
        return "PermissionMenuRel(powerId=" + this.getPowerId() + ", menuId=" + this.getMenuId() + ")";
    }
}
